import request from '@/utils/request'


// 获取w
export function getCmsEssayList(data) {
    //const data = data;
    return request({
        'url': '/cms/blog/cms/cmsEssayList',
        headers: {
            isToken: false
        },
        'method': 'get',
        'data': data,
        timeout: 40000
    })
}

// 获取用户详细信息
export function getCmsEssayById(id) {
    //const data = data;
    return request({
        'url': '/cms/blog/cms/detail/' + id,
        headers: {
            isToken: false
        },
        'method': 'get',
        timeout: 40000
    })
}
// 新增预览数
export function addBlogViews(id) {
    //const data = data;
    return request({
        'url': '/cms/blog/cms/addBlogViews/' + id,
        headers: {
            isToken: false
        },
        'method': 'get',
        timeout: 40000
    })
}
// 新增点赞数
export function addBlogLike(id) {
    //const data = data;
    return request({
        'url': '/cms/blog/cms/addBlogLike/' + id,
        headers: {
            isToken: false
        },
        'method': 'get',
        timeout: 40000
    })
}

// 文章统计
export function cmsEssayStatic() {
    //const data = data;
    return request({
        'url': '/cms/blog/cms/cmsEssayStatic' ,
        headers: {
            isToken: false
        },
        'method': 'get',
        timeout: 40000
    })
}

// 退出方法
export function logout() {
    return request({
        'url': '/logout',
        'method': 'post'
    })
}

